home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / jam / jamdisk7 / inc9110b.lzh / include / system.h < prev    next >
C/C++ Source or Header  |  1991-07-15  |  1KB  |  53 lines

  1. /*
  2.  * system.h
  3.  */
  4.  
  5. /*
  6.  * UNIX system calls (some) for PDC/Amiga, K&R2 style; other Amiga/PDC
  7.  * system routines (those not in K&R).
  8.  * Simon Wright 4.3.91
  9.  *
  10.  * 17.3.91 sjw; insert some 'const's
  11.  * 31.3.91 sjw; add utime()
  12.  * 24.4.91 sjw; add close()
  13.  * 26.5.91 sjw; add fstat(), stat()
  14.  * 29.5.91 sjw; make read(), write() use void * instead of char *
  15.  * 18.6.91 sjw; getdtablesize() made public, include Enable_Abort
  16.  * 15.7.91 sjw; move fdopen(), fileno() to stdio.h, don't include stdio.h
  17.  */
  18.  
  19. #ifndef __SYSTEM_H__
  20. #define __SYSTEM_H__
  21.  
  22. /* #include <fcntl.h> for flags */
  23.  
  24. #ifndef __STAT_H__
  25. #include <sys/stat.h>
  26. #endif
  27.  
  28. /* Abort (^C etc) handling */
  29.  
  30. extern int Enable_Abort;
  31. long       Chk_Abort(void);
  32.  
  33. /* 'normal' system functions */
  34.  
  35. int    close(int fd);
  36. int     creat(const char *name, int perms);
  37. int    fstat(int fd, struct stat *statbuf);
  38. int     getdtablesize(void);
  39. long    lseek(int fd, long offset, int origin);
  40. int     isatty(int fd);
  41. char   *mktemp(char *name);
  42. int     open(const char *name, int flags, int perms);
  43. int     read(int fd, void *buf, int n);
  44. void    sleep(unsigned seconds);
  45. int    stat(const char *name, struct stat *statbuf);
  46. int     unlink(const char *name);
  47. int     utime(char *filename, time_t unixtime[2]);
  48. int     write(int fd, const void *buf, int n);
  49.  
  50. #endif /* __SYSTEM_H__ */
  51.  
  52.  
  53.